package com.autoglm.data.local

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.autoglm.data.local.dao.TaskDao
import com.autoglm.data.local.dao.UserPreferenceDao
import com.autoglm.data.local.entity.TaskEntity
import com.autoglm.data.local.entity.UserPreferenceEntity

/**
 * AutoGLM数据库
 */
@Database(
    entities = [
        TaskEntity::class,
        UserPreferenceEntity::class
    ],
    version = 1,
    exportSchema = false
)
@TypeConverters(Converters::class)
abstract class AutoGLMDatabase : RoomDatabase() {
    
    abstract fun taskDao(): TaskDao
    abstract fun userPreferenceDao(): UserPreferenceDao
}
